import request from '@/utils/request'
import { postAction, getAction } from '@/utils/xhs-ajax'
//
// export function login(data) {
//   return request({
//     url: '/vue-element-admin/user/login',
//     method: 'post',
//     data
//   })
// }

export function login(data) {
  return postAction('/user/login.do', data)
}

export function getInfo(token) {
  return getAction('/user/getInfo.do', token)
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
